package com.techie.mdm.appbar.showcase;

import com.techie.mdm.appbar.showcase.AppBarBean;
import org.springframework.richclient.application.support.AbstractView;

import javax.swing.*;

/**
 * A view of an appbar.
 * Creates an {@link AppBarForm}.
 */
public class AppBarView extends AbstractView
{
    private AppBarBean bean;

    public AppBarView(AppBarBean bar)
    {
        this.bean = bar;
    }


    @Override
    protected JComponent createControl()
    {
        AppBarForm form = new AppBarForm(bean);
        return form.createFormControl();
    }
}
